from .web_element import WebElement


class EmTag(WebElement):
    '''
    span元素操作
    '''

    def get_title(self):
        '''
        获取元素的title属性值

        :Returns:
            返回元素的title属性值
        '''
        return self.control.GetTitle

    def set_title(self, title):
        '''
        设置元素的title属性值

        :Args:
         - title: 元素的title属性值
        '''
        self.control.SetTitle(title)